import Cookies from 'js-cookie'
// import element3 from "element3";
import "element3/lib/theme-chalk/index.css"
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// import element3 from "element3";
// import "element3/lib/theme-chalk/index.css";
import './styles/index.scss'
import store from "./store"

import svgIcon from './components/common/svg-icon/index.vue'

import {
    createApp
} from 'vue'
import App from './App.vue'
import router from './router/index.js'



const app = createApp(App)
app.component('svg-icon', svgIcon)

// app.component(svgIcon)
app.use(router)
app.use(store)
app.use(ElementPlus,  {
    size: Cookies.get('size') || 'medium', // set element-ui default size
    // locale: enLang // 如果使用中文，无需设置，请删除
  })
// app.use(element3)
app.mount('#app')